import request from '@/utils/request'

// 查询退役军人就业创业信息列表
export function listJob(query) {
  return request({
    url: '/jobservice/job/list',
    method: 'get',
    params: query
  })
}

// 查询退役军人就业创业信息详细
export function getJob(id) {
  return request({
    url: '/jobservice/job/' + id,
    method: 'get'
  })
}

// 新增退役军人就业创业信息
export function addJob(data) {
  return request({
    url: '/jobservice/job/addSoldierJobInfo',
    method: 'post',
    data: data
  })
}

// 修改退役军人就业创业信息
export function updateJob(data) {
  return request({
    url: '/jobservice/job/editSoldierJobInfo',
    method: 'post',
    data: data
  })
}

// 删除退役军人就业创业信息
export function delJob(id) {
  return request({
    url: '/jobservice/job/' + id,
    method: 'delete'
  })
}

// 导出退役军人就业创业信息
export function exportJob(query) {
  return request({
    url: '/jobservice/job/export',
    method: 'get',
    params: query
  })
}

// 身份证校验
export function checkCard(query) {
  return request({
    url: '/jobservice/job/getSoldierMessage',
    method: 'get',
    params: query
  })
}